package toolPackage;

public class ListNode {
    public int val;
    public ListNode next;
    public ListNode(int x) {
        val = x;//存入的值
        next = null;//指向下一个地址的指针
    }

    @Override
    public String toString() {
        return "ListNode{" +
                "val=" + val +
                ", next=" + next +
                '}';
    }
}

